package com.hzy.yiyaoba.utils;

import com.lidroid.xutils.HttpUtils;

public class HttpManager {

	private static HttpManager instance = null;
	private HttpUtils utils = null;

	private HttpManager() {
	};

	public static HttpManager getInstance() {
		synchronized (HttpManager.class) {
			if (instance == null) {
				instance = new HttpManager();
			}
		}
		return instance;
	}

	public HttpUtils getHttpUtils() {
		synchronized (HttpUtils.class) {
			if (utils == null) {
				utils = new HttpUtils(Config.HTTP_TIMEOUT);
			}
		}
		return utils;
	}

}
